package com.marion.langchain4jdemo.service;

import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;

@AiService
public interface QWen {

    @SystemMessage("你是一个计算机专家")
    String chat(String userMessage);

    @SystemMessage("You are a polite assistant")
    Flux<String> chatWithStream(String userMessage);

//    @SystemMessage("你是一个高效的人工智能助手")
//    String chatWithMemory(@MemoryId String userId, @UserMessage String userMessage);
}
